﻿using BudgetApp.Data.Models;
using Microsoft.AspNet.Identity.EntityFramework;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BudgetApp.Data
{
    public class ApplicationDbContext : IdentityDbContext<ApplicationUser>
    {
        public ApplicationDbContext()
            : base("DefaultConnection", throwIfV1Schema: false)
        {
        }

        public static ApplicationDbContext Create()
        {
            return new ApplicationDbContext();
        }

        public DbSet<InputType> InputTypes { get; set; }
        public DbSet<Category> Categories { get; set; }
        public DbSet<TrackSpend> TrackSpends { get; set; }
        public DbSet<TrackBill> TrackBills { get; set; }
        public DbSet<SubCategory> SubCategories { get; set; }
        public DbSet<CatType> CatTypes { get; set; }

    }
}
